package javaSE.Thread;

/**
 * 创建线程的四种方法只一：继承Thread类
 */
public class createByExtends {
    public static void main(String[] args) {
        thread01 thread01 = new thread01();
        thread01.start();
    }
}
class thread01 extends Thread {
    @Override
    public void run() {
        System.out.println("继承了Thread类的线程实现");
    }
}
